package day10;

import java.util.Calendar;
import java.util.Date;

public class CalendaDemo {
    public static void main(String[] args) {


        Calendar cal= Calendar.getInstance();
        System.out.println(cal);
        Date dt=cal.getTime();
        System.out.println(dt);
        //转换成日期
        Date at=new Date(System.currentTimeMillis());
        cal.setTime(at);
        System.out.println(cal);
        cal.set(2000,4,1);
        System.out.println(cal.getTime());
    }


}
